
<div class='mpage'>
<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Thông tin cá nhân';
$this->breadcrumbs=array(
	'Thông tin cá nhân',
);
?>

<div class='main-item-box' >
		<div class='product-info-header'>
			<span>Thông tin cá nhân</span>
			<div class='extend-header'></div>
		</div>


<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'userProfile-form',
	 'enableAjaxValidation' => false,
	 'htmlOptions' => array('enctype' => 'multipart/form-data'
	),
)); ?>

<div class="row">
<span> Tên đăng nhập: </span>
<?php echo Yii::app()->user->getId()->UserName; ?>
</div>

<div class="row">
<img src= <?php echo MyConstans::getHostIconpath(). Yii::app()->user->getId()->Icon;?> style="width:150px; height:150px;"/>

<?php echo $form->labelEx($model, 'image');
		echo $form->fileField($model, 'image');
		echo $form->error($model, 'image');
?>
</div>
	<div class="row">
		<?php echo $form->labelEx($model,'FirstName'); ?>
		<?php echo $form->textField($model,'FirstName'); ?>
		<?php echo $form->error($model,'FirstName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'LastName'); ?>
		<?php echo $form->textField($model,'LastName'); ?>
		<?php echo $form->error($model,'LastName'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'Address'); ?>
		<?php echo $form->textArea($model,'Address'); ?>
		<?php echo $form->error($model,'Address'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'Phone'); ?>
		<?php echo $form->numberField($model,'Phone'); ?>
		<?php echo $form->error($model,'Phone'); ?>
	</div>

<p class="note">Thông tin bắt buộc <span class="required">*</span></p>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Thay đổi'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
</div>
</div>
